<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>窗口托动及改变大小</title>
<link rel="stylesheet" type="text/css" href="/css.css" />
<script type="text/javascript" src="/lib/air1.5/AIRAliases.js"></script>

<script type="text/javascript">
function onResize(type){
	nativeWindow.startResize(type);
}
function onNativeMove(){
	nativeWindow.startMove();
}
</script>
<style type="text/css" media="screen">
.drag {
width:200px;
height:200px;
margin:0px auto;
padding:15px;
border:1px dashed #333;
background-color:#eee;
}
.resize {
background-color:#FF0000;
padding:10px;
}
.left {
float:left;
}
.right {
float:right;
}
</style>

</head>
<body>
<div class="resize left" onmousedown="onResize(air.NativeWindowResize.TOP_LEFT)">Drag to resize</div>
<div class="resize right" onmousedown="onResize(air.NativeWindowResize.TOP_RIGHT)">Drag to resize</div>
<div class="drag" onmousedown="onNativeMove()">Drag to move</div>
<div class="resize left" onmousedown="onResize(air.NativeWindowResize.BOTTOM_LEFT)">Drag to resize</div>
<div class="resize right" onmousedown="onResize(air.NativeWindowResize.BOTTOM_RIGHT)">Drag to resize</div>
</body>
</html>